itertools.combinations_with_replacement() hackerrank solution python